﻿#include "../head/Transaction.hh"
#include "../head/tools.hh"
#include <iostream>

Transaction::Transaction(std::string id, long long  amt, std::string type, std::string n)
    : transactionId(id), amount(amt), transactionType(type), note(n) {
}

void Transaction::displayTransaction() const {
    std::cout << "Transaction ID: " << transactionId << ", Type: " << transactionType
        << ", Amount: ￥" << tools::amountdisplay(amount) << ", Note: " << note << std::endl;
}
